<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript" src="scripts/boot.js"></script>
</head>
<body style="border: 0px; margin: 0px; padding: 0px;width: 100%;height: 100%">
<div class="mini-toolbar" style="border-bottom:0;padding:0px;">
    <table style="width:100%;">
        <tr>
        	<td style="width:100%;">
        		<span style="color: #f00;">注：默认查询下单时间在当天00:00~23:59之间的数据</span>
        	</td>
            <td style="white-space:nowrap;">
            	下单开始时间：<input name="startTime"  class="mini-datepicker" style="width: 180px" showClearButton="true" showClose="true" oncloseclick="closeT" allowInput="false"/>
                             下单结束时间：<input name="endTime" class="mini-datepicker" style="width: 180px" showClearButton="true" showClose="true" oncloseclick="closeT" allowInput="false"/>
                <a class="mini-button" iconCls="icon-search" onclick="search()">查询</a>
            </td>
        </tr>
    </table>        
</div>
<div class="mini-fit" >
	<div id="datagrid0921" class="mini-datagrid" idField="id" pageSize="20" allowResize="true" multiSelect="true"
		url="logistics_sta_view.do" style="width:10000;height: 100%">
		<div property="columns">
			<div type="indexcolumn"></div>
			<div field="logisticsName" width="120" headerAlign="center" align="center">物流公司</div>
			<div header="总订单信息" headerAlign="center" align="center">
                <div property="columns">
				<div field="totalNumber" width="80" headerAlign="center" align="center">总单数</div>
				<div field="totalProNumber" width="40" headerAlign="center" align="center">数量</div>
				<div field="totalMoney" width="80" headerAlign="center" align="center">金额</div>
				<div field="totalFreight" width="40" headerAlign="center" align="center">运费</div>
				<div field="totalTotal" width="45" headerAlign="center" align="center">总金额</div>
				</div>
			</div>
			<div header="发货信息" headerAlign="center" align="center">
                <div property="columns">
				<div field="invoiceNumber" width="80" headerAlign="center" align="center">发货单数</div>
				<div field="invoiceProNumber" width="40" headerAlign="center" align="center">数量</div>
				<div field="invoiceMoney" width="80" headerAlign="center" align="center">发货金额</div>
				<div field="invoiceFreight" width="40" headerAlign="center" align="center">运费</div>
				<div field="invoiceTotal" width="45" headerAlign="center" align="center">总金额</div>
				</div>
			</div>
			<div header="退单信息" headerAlign="center" align="center">
                <div property="columns">
					<div field="backNumber" width="80" headerAlign="center" align="center">退单数</div>
					<div field="backProNumber" width="40" headerAlign="center" align="center">数量</div>
					<div field="backMoney" width="80" headerAlign="center" align="center">退单金额</div>
					<div field="backFreight" width="40" headerAlign="center" align="center">运费</div>
					<div field="backTotal" width="45" headerAlign="center" align="center">总金额</div>
				</div>
			</div>
			<div header="签收信息" headerAlign="center" align="center">
                <div property="columns">
					<div field="signNumber" width="80" headerAlign="center" align="center">签收单数</div>
					<div field="signProNumber" width="40" headerAlign="center" align="center">数量</div>
					<div field="signMoney" width="80" headerAlign="center" align="center">签收金额</div>
					<div field="signFreight" width="40" headerAlign="center" align="center">运费</div>
					<div field="signTotal" width="45" headerAlign="center" align="center">总金额</div>
				</div>
			</div>
			<div header="对账信息" headerAlign="center" align="center">
                <div property="columns">
					<div field="reconNumber" width="80" headerAlign="center" align="center">对账单数</div>
					<div field="reconProNumber" width="40" headerAlign="center" align="center">数量</div>
					<div field="reconMoney" width="80" headerAlign="center" align="center">对账金额</div>
					<div field="reconFreight" width="40" headerAlign="center" align="center">运费</div>
					<div field="reconTotal" width="45" headerAlign="center" align="center">总金额</div>
				</div>
			</div>
			<div header="回款信息" headerAlign="center" align="center">
                <div property="columns">
					<div field="sectionNumber" width="80" headerAlign="center" align="center">回款单数</div>
					<div field="sectionProNumber" width="40" headerAlign="center" align="center">数量</div>
					<div field="sectionMoney" width="80" headerAlign="center" align="center">回款金额</div>
					<div field="sectionFreight" width="40" headerAlign="center" align="center">运费</div>
					<div field="sectionTotal" width="45" headerAlign="center" align="center">总金额</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid0921");
grid.load();
function search() {
	var startTime = mini.getbyName("startTime").getFormValue();
	var endTime = mini.getbyName("endTime").getFormValue();
	if(null == startTime || '' == startTime) {
		alert('请选择开始时间');
	} else if(null == endTime || '' == endTime) {
		alert('请选择结束时间');
	} else {
		grid.load({startTime: startTime, endTime: endTime});
	}
}

function closeT(e) {
	e.sender.setValue('');
	e.sender.setText('');
}
</script>
</body>
</html>